#ifndef STSEND_H
#define STSEND_H
#include <QThread>
#include <QDebug>
#include<QMutex>
#include "windows.h"
#include "../jpshowinfo.h"
#include "../jpdata.h"
class STsend : public QThread,public JpShowInfo
{
     Q_OBJECT
public:
    explicit STsend(QObject *parent = 0);
    void run();
    void stop();
    void init(QVector<ClientList>* _clientlist,QMap<long,QString> data);
    ~STsend();
    void SendWriteSignal(InMapData inmap,QTcpSocket* sk);
signals:
    void WriteSignals(const InMapData inmap,QTcpSocket *sk);
private:
    QMutex qm;
    bool _stop;
    QVector<ClientList>* clientlist;
    QMap<long, QString> _data;

};

#endif // STSEND_H
